package com.sc.javaee.service.impl;

import com.sc.javaee.mapper.ReviewMapper;
import com.sc.javaee.pojo.Review;
import com.sc.javaee.service.ReviewService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ReviewServiceImpl implements ReviewService {
    @Autowired
    ReviewMapper mapper;
    public List<Review> getReviewsByProductId(Integer productId) {
        return mapper.getReviewsByProductId(productId);
    }
}
